package e2.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;

/**
 * Entity implementation class for Entity: Curso
 *
 */
@Entity

public class Curso implements Serializable {

	   
	@Id
	private long id;
	private static final long serialVersionUID = 1L;
	@OneToMany(mappedBy="curso")
	private List <DisciplinaDeEstagio> disciplinas;

	public Curso() {
		 
	}   
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

    /**
     * @return the disciplinas
     */
    public List <DisciplinaDeEstagio> getDisciplinas() {
        return disciplinas;
    }

    /**
     * @param disciplinas the disciplinas to set
     */
    public void setDisciplinas(List <DisciplinaDeEstagio> disciplinas) {
        this.disciplinas = disciplinas;
    }
   
}
